package com.atguigu05.method_more._02args;

/**
 * @author 尚硅谷-宋红康
 * @create 23:23
 */
public class ArgsTest {

    public static void main(String[] args) {
        ArgsTest arg = new ArgsTest();
        arg.printf(1,2);
        arg.print(new int[]{1,2,3});
    }

    public void print(int ... arr){
        System.out.println("111");
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + "\t");
        }
    }
    public void print(int i,int ... arr){
        System.out.println("444");
    }
    public void print(int i){
        System.out.println("222");
    }
    public void printf(int i,int j ){
        System.out.println("3333");
    }
}
